import Vue from 'vue';
import App from './App';
import router from './router';
//  import axios from 'axios';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';    // 默认主题
// import '../static/css/theme-green/index.css';       // 浅绿色主题
//import "font-awesome/css/font-awesome.min.css";
import axios from '@/http/http.js';

import "babel-polyfill";
import qs from 'qs';
import moment from 'moment';
// 引入自定义组件。index.js是组件的默认入口
import Blockquote from './components/my-components/blockquote';
Vue.use(Blockquote);
Vue.use(ElementUI, { size: 'middle' });
Vue.use(qs);
Vue.prototype.qs = qs;
Vue.prototype.$axios = axios;
Vue.prototype.moment = moment;


// Vue.prototype.HOST=process.env.NODE_ENV === 'development'?"http://192.168.0.143:8086":""//部署后的后台服务地址，如项目根路径为admin则为http://192.168.1.150/admin
Vue.prototype.UPLAODPATH=process.env.NODE_ENV === 'development'?"http://192.168.0.143:8086":""//部署后的后台文件上传地址，如项目根路径为admin则为http://192.168.1.150/admin/file/upload
Vue.prototype.imgUrl='http://192.168.0.108:8086/one9-web/file?idStr=';
new Vue({
    router,
    render: h => h(App)
}).$mount('#app');
